a =eval(input("请输入通话时长:"))
b =eval(input("请输入短信条数:"))
c =eval(input("请输入数据流量:"))
# 套餐基础费用
basic = 58

# 通话、短信、流量的超出费用，初始状态默认都不超出，为0
tongxin = duanxin = liuliang = 0
if a > 250:
    tongxin = (a-250)*0.25
if b > 100:
    duanxin = (b-100)*0.1
if c > 50:
    liuliang = (c-50)*0.3
total = basic + tongxin + duanxin + liuliang
print("通话时长:{}分钟，短信条数:{}条，数据流量:{}M的总费用:{}元".format(a,b,c,total))